/**
 * Copyright ©2012-2018 HopeHaiyang Corporation, All Rights Reserved
 * http://www.wuhanhope.com
 */
package hope.platform.data.dao;

import hope.platform.data.domain.SiteDistance;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

/**
 * class info
 *
 * @author hujia
 *         Create at 2018/7/11 15:41
 */
public interface SiteDistanceRepository extends MongoRepository<SiteDistance,String> {

    List<SiteDistance> findBySerialNumber(String serialNumber);
    SiteDistance findBySerialNumberAndOtherSerialNumber(String serialNumber, String otherSerialNumber);
    List<SiteDistance> findBySerialNumberAndDistanceBetween(String serialNumber, Double small,
                                                            Double big);
    List<SiteDistance> findByDistanceBetween(Double small, Double big);
}
